import pytest


def add(x, y):
    return x + y


data = [(10, 20, 30), (100, 200, 300), (1000, 2000, 3000)]


class TestAdd(object):
    @pytest.mark.parametrize("x,y,expect", data)
    def test_add(self, x, y, expect):
        res = add(x, y)
        assert expect == res
